//
// Created by luolijun on 2021/11/10.
//

#include "FacadeItemSelector.h"

#include <QPainter>
#include <QWidget>

namespace facade {

void FacadeItemSelector::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) {
    QRect rect = widget->rect();
    painter->drawRect(QRect(rect.left(), rect.top(), 10, 10));
    painter->drawRect(QRect(rect.right() - 10, rect.top(), 10, 10));
    painter->drawRect(QRect(rect.left(), rect.bottom() - 10, 10, 10));
    painter->drawRect(QRect(rect.right() - 10, rect.bottom() - 10, 10, 10));
}

} // namespace facade